package com.banksoft.admin.entity;

/**
 * Created by Administrator on 2016/6/28.
 */
public class UserMoney {

    private String id;
    private String userId;
    private String userName;
    private String cash;//可提现资金
    private String bonus;//返利奖
    private String frozenAmount;//冻结资金
    private String totalAmount;//累计资金
    //不映射数据库
    private String userAccount;
    private String userType;

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCash() {
        if(cash==null)
            return "0";
        if(Float.parseFloat(cash)<0)
            return "0";
        return cash;
    }

    public void setCash(String cash) {
        this.cash = cash;
    }

    public String getBonus() {
        if(bonus==null)
            return "0";
        if(Float.parseFloat(bonus)<0)
            return "0";
        return bonus;
    }

    public void setBonus(String bonus) {
        this.bonus = bonus;
    }

    public String getFrozenAmount() {
        if(frozenAmount==null||Float.parseFloat(frozenAmount)<0)
            return "0";
        return frozenAmount;
    }

    public void setFrozenAmount(String frozenAmount) {
        this.frozenAmount = frozenAmount;
    }

    public String getTotalAmount() {
        if(totalAmount==null)
            return "0";
        if(Float.parseFloat(totalAmount)<0)
            return "0";
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }
}
